﻿using System;
using System.Diagnostics.CodeAnalysis;
using System.Runtime.Serialization;

namespace codeparser.net.v2.Exceptions
{
    /// <summary>
    /// Thrown when an exception in codeparser.net occurs.
    /// </summary>
    [Serializable]
    [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly")]
    public class CodeparserException : Exception
    {
        /// <summary>
        /// Initializes a new instance of the CodeparserException type.
        /// </summary>
        public CodeparserException()
            : base()
        {
        }

        /// <summary>
        /// Initializes a new instance of the CodeparserException type.
        /// </summary>
        /// <param name="message">The message.</param>
        public CodeparserException(string message)
            : base(message)
        {
        }

        /// <summary>
        /// Initializes a new instance of the CodeparserException type.
        /// </summary>
        /// <param name="message">The message.</param>
        /// <param name="innerException">The inner exception.</param>
        public CodeparserException(string message, Exception innerException)
            : base(message, innerException)
        {
        }

        /// <summary>
        /// Initializes a new instance of the CodeparseException type.
        /// </summary>
        /// <param name="info">The serialization info.</param>
        /// <param name="context">The context.</param>
        protected CodeparserException(SerializationInfo info, StreamingContext context)
            : base(info, context)
        {
        }
    }
}